{% extends 'base.html' %}
{% load brispon_filter %}
{% block title %}Brisbane Coupon{% endblock %}
{% block stylesheet %}
{{ block.super }}
<style type="text/css">
</style>
{% endblock%}

{% block javascript %}
{{ block.super }}
{% endblock%}

{% block content %}
<div id="dWrapper">
  <div id="dLineContent">
    <h2>My Basic Information</h2>
      <form method="post" action="">
      {% csrf_token %}
      {{ user_form.as_table }}
      <input type="submit" value="Change">
      </form>
    <br />
    <h2>My Coupon</h2>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <thead>
        <tr>
          <th>Coupon Name</th>
          <th>Event</th>
          <th>Date</th> 
        </tr>
      </thead>
      <tbody>
      {% for fc in fcoupons %}
        <tr>
          <td>{{ fc.coupon.name }}</td>
          <td><a href="{{ fc.coupon.event.url }}">{{ fc.coupon.event.name }}</a></td>
          <td>{{ fc.registry }}</td>
        </tr>
      {% endfor %}
      </tbody>
    </table>
    <br />
    <br />
    <h2>Favorite Store</h2>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <thead>
        <tr>
          <th>Store Name</th>
          <th>Date</th> 
        </tr>
      </thead>
      <tbody>
      {% for fs in fstores %}
        <tr>
          <td><a href="{{ fs.store.url }}">{{ fs.store.name }}</a></td>
          <td>{{ fs.registry }}</td>
        </tr>
      {% endfor %}
      </tbody>
    </table>
  </div>
</div>
{% endblock %}
